home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2001 May / may_2001.iso / intercd / root / Multimedia / ^DivX_Article / virtualdub / VirtualDub-source-1_4d / DynamicCode.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-11-18  |  331 b   |  20 lines

  1. struct DynamicCodeBlock {
  2.     void    *pCode;
  3.     long    cbCode;
  4.     short    nEntryPoints;
  5.     short    nRelocs;
  6.  
  7.     long    entrypts[1];
  8. };
  9.  
  10. class DynamicCode {
  11. protected:
  12.     void **pDynamicBlock;
  13.  
  14. public:
  15.     DynamicCode(const DynamicCodeBlock *, long *params);
  16.     ~DynamicCode();
  17.  
  18.     void *getEntryPoint(int ep) { return pDynamicBlock[ep]; }
  19. };
  20.